﻿#ifndef COMPUTERWINDGET_H
#define COMPUTERWINDGET_H

#include <QDialog>
#include "computer.h"

namespace Ui {
class ComputerWindget;
}

class ComputerWindget : public QDialog
{
    Q_OBJECT

public:
    explicit ComputerWindget(QWidget *parent = 0);
    ~ComputerWindget();

    void prepareCreate();

    void prepareUpdate(Computer &computer);

private slots:
    void on_cancelButton_clicked(bool checked);

    void on_saveButton_clicked(bool checked);

    void on_delButton_clicked(bool checked);

    void on_ipLineEdit_editingFinished();

private:
    Ui::ComputerWindget *ui;

    Computer computer;

};

#endif // COMPUTERWINDGET_H
